package com.blackbox.price.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: TWQ
 * @Description:
 * @Date: Created in 下午 22:29 2020/8/18 0024
 * @Modidied By: NO
 */
@Data
@AllArgsConstructor //生成全参数构造函数
@NoArgsConstructor//生成无参构造函数
@Builder
@Table(name="bb_child_user")
public class BbChildUser{

    @ApiModelProperty("ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String id;

    // 关联用户id
    private Integer userId;

    @ApiModelProperty("子用户名称")
    private String name;

    @ApiModelProperty("价格")
    private String price;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private Date updateTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("排序")
    private Integer orders;
}
